function [ X ] = VspatialMap( h , Lxt , Lxe , Lye , Lyt , NIvt , NJvt , NJve , NIve , dimV)
%SPATIALMAP Summary of this function goes here
%   Detailed explanation goes here

x = zeros (dimV,1);
y = zeros (dimV,1);
visited = zeros (dimV,1);
xStart = h/2;
yStart = 0;

for i=1:NIvt
    for j=1:NJvt
        
        if (i<=NIve && j>NJve) continue; end
        
        index = Vmap (i,j);
        visited (index) = 1;
        
        x (index) = xStart + (i-1) * h; 
        y (index) = yStart + (j-1) * h;
        
    end
end

X = [x,y];
visited;
end

